package JFrame;

import javax.swing.*;
import java.awt.*;

public class WithdrawalRecordsJFrame extends JFrame {
    public WithdrawalRecordsJFrame() {
        this.setName("村镇银行业务储蓄系统");
        this.setTitle("用户操作界面");
        this.setSize(600, 700);
        this.setAlwaysOnTop(true);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(2);
        this.setLayout(new FlowLayout());
        this.setVisible(true);

        JLabel labelCardNumber = new JLabel("银行卡号");
        JLabel labelType = new JLabel("取款类型");
        JLabel labelMoney = new JLabel("取款金额");
        JLabel labelInterest = new JLabel("形成利息");
        JLabel labelDate = new JLabel("取出日期");

        Font font = new Font("宋体", Font.PLAIN, 20);
        labelCardNumber.setFont(font);
        labelType.setFont(font);
        labelMoney.setFont(font);
        labelInterest.setFont(font);
        labelDate.setFont(font);

        JPanel p1 = new JPanel();
        p1.add(labelCardNumber);
        p1.add(labelType);
        p1.add(labelMoney);
        p1.add(labelInterest);
        p1.add(labelDate);
        this.add(p1);
    }
}
